<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <title>注册LeeBlog用户</title>
    <link rel="stylesheet" href="css/style.css">
</head>
<body>
<div class="container">
    {{--    <div class="brand-logo"></div>--}}
    <div class="brand-title" onclick="location.href='index'"  style="color: #ff9400;cursor: pointer;">LeeBlog</div>
    <div class="inputs">
        <form action="/register" method="post">
            @csrf
            <label>用户名</label>
            <input type="text" name="username" placeholder="愤怒的小牛"
                   value="{{old('username')}}"/>
            <div class="error">@error('username'){{$message}}@enderror</div>
            <label>Email</label>
            <input type="email" name="email" placeholder="example@test.com"
                   value="{{old('email')}}"/>
            <div class="error">@error('email'){{$message}}@enderror</div>
            <label>密码</label>
            <input type="password" name="password" placeholder="大于6个字符"/>
            <div class="error">@error('password'){{$message}}@enderror</div>
            <label>确认密码</label>
            <input type="password" name="password_confirmation"
                   placeholder="两次密码需一致"/> @error('password_confirmation')
            <div class="error">{{$message}}@enderror</div>
            <div class="yzml"><label>验证码</label></div>
            <div style="display: flex;justify-content: center;">

               <input type="text" name="captcha" placeholder="不区分大小写" value="{{old('captcha')}}" />
              <img src="{{captcha_src('flat')}}" alt="验证码" onclick="this.src='{{captcha_src('flat')}}'+Math.random()">
            </div>

            <div class="error">@error('captcha'){{$message}}@enderror</div>
            <button type="submit" style="background-color: #ff9400;color: white">注册</button>
        </form>
    </div>
</div>
</body>

</html>
